package com.study.utils;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ApplicationContextUtils {
	
	private static ApplicationContext applicationContext ;
	
	public static ApplicationContext getApplicationContext() {
		if(applicationContext == null) {
			applicationContext = new ClassPathXmlApplicationContext("classpath:spring/applicationContext.xml") ;
			return applicationContext ;
		} 
		return null ;
	}

}
